<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>transition实现打字效果</title>
		<style>
			input{
				width: 0px;
				height: 25px;
				outline: none;
				font-size: 20px;
				/*overflow: hidden;*/
				transition: width 4s steps(9);
			}
			input:focus{
				width: 180px;
			}
		</style>
	</head>
	<body>
		<input type="text" value="我想要实现打字效果"/>
	</body>
</html>
